// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import store from './store';
import VueI18n from 'vue-i18n'
import iview from './iview'




Vue.use(VueI18n)

const i18n = new VueI18n({
  locale:'zh',
  messages:{
    'zh':require('./lang/zh.json'),
    'en':require('./lang/en.json'),
    'vi':require('./lang/vi.json'),
  }
});

// import { Button, Table,Card,Icon,Notice,Message,Layout,Modal,Page,Select,Input,Option,LoadingBar  } from 'iview';
// Vue.component('Button', Button);
// Vue.component('Table', Table);
// Vue.component('Card', Card);
// Vue.component('Icon', Icon);
// Vue.component('Layout', Layout);
// Vue.component('Modal', Modal);
// Vue.component('Page', Page);
// Vue.component('Select', Select);
// Vue.component('Input', Input);
// Vue.component('Option', Option);
// Vue.component('LoadingBar', LoadingBar);




axios.defaults.baseURL = "http://182.61.174.109:1000/B2BAPI/"
Vue.prototype.$axios = axios
// Vue.prototype.$Notice = Notice
// Vue.prototype.$Message = Message
// Vue.prototype.$Modal = Modal
Vue.prototype.$store = store
Vue.config.productionTip = false



/* eslint-disable no-new */
new Vue({
  el: '#app',
  i18n,
  components: { App },
  template: '<App/>',
  router
})
